from django.db import models


class Book(models.Model):
    name = models.CharField(max_length=16, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'Book'


class UserModel(models.Model):
    name = models.CharField(max_length=16)
    # upload_to 相对路径，  相对于的是MEDIA_ROOT  媒体根目录
    icon = models.ImageField(upload_to='icons')